for i in range(100000):
    if i % 10 == 8 and i // 12 == i // 10:
        print(i)
